<%--
 *  File:   EREditFrm.jsp
 *  Desc:	EREditFrm
 *
 *  Date		         Author		      Changes
 *  2005-7-29	  sword		  Created
 *
 *  Copyright (C) 2000 - 2005 Oval Technologies, Inc.
 *  All rights reserved.
 *
 *  This software is the confidential and proprietary information of Oval
 *  Technologies, Inc. ("Confidential Information").  You shall not
 *  disclose such Confidential Information and shall use it only in
 *  accordance with the terms of the license agreement you entered into
 *  with Oval.
--%>
<%
		//init param
  	String privilegeCode = "Z0903,10301,10307,10308";
		String strModuleName = "ERM";
  	String contextPath = request.getContextPath();

	  String IsExternal = "";
	  String RelationType = "";
	  String pagename = "";

	  IsExternal = (String)session.getAttribute("IsExternal");
	  RelationType = (String)session.getAttribute("RelationType");

	  pagename = (String)request.getParameter("pagename");

	  if(IsExternal == null)
	     IsExternal = "";

	 if(RelationType == null)
	     RelationType = "";
	
  if (pagename == null)
	     pagename = "";

%>

<%--<script>alert(<%=JspHelper.filterNull((String)request.getParameter("pagename"))%>);</script>--%>

<%@ include file="/inc/FrmCommonHeader.inc" %>

<html>
<head>
<title>EREditFrm</title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>

<%--<input type="hidden" name="IsExternal" value="<%=JspHelper.filterNull( IsExternal )%>">--%>
<%--<input type="hidden" name="RelationType" value="<%=JspHelper.filterNull( RelationType )%>">--%>

<frameset rows="22%,*,5%" frameborder="no" >
  <frame name="up" src="<%=contextPath%>/masterdata/erm/EREditHeader.jsp"  scrolling="no">
  <% if (IsExternal.equals("Y")) { %>
      <%if (pagename.equals("1")) {%>
         <frame name="down" src="<%=contextPath%>/masterdata/erm/SEREdit.jsp" scrolling="yes" >
      <%} else if (pagename.equals("2")) {%>
         <frame name="down" src="<%=contextPath%>/masterdata/erm/ERServiceEdit.jsp" scrolling="yes" >
      <%} else if (pagename.equals("3")) {%>
         <frame name="down" src="<%=contextPath%>/masterdata/erm/ERVendorServiceEdit.jsp" scrolling="yes" >
      <%} else if (pagename.equals("4")) {%>
         <frame name="down" src="<%=contextPath%>/masterdata/erm/DEREdit.jsp" scrolling="yes" >
      <%} else { %>
         <frame name="down" src="<%=contextPath%>/masterdata/erm/DEREdit.jsp" scrolling="yes" >
  <% } } else { %>
      <%if (pagename.equals("1")) {%>
         <frame name="down" src="<%=contextPath%>/masterdata/erm/SEREdit.jsp" scrolling="yes" >
      <%} else if (pagename.equals("2")) {%>
         <frame name="down" src="<%=contextPath%>/masterdata/erm/ERServiceEdit.jsp" scrolling="yes" >
      <%} else if (pagename.equals("3")) {%>
         <frame name="down" src="<%=contextPath%>/masterdata/erm/ERVendorServiceEdit.jsp.jsp" scrolling="yes" >
      <%} else if (pagename.equals("4")) {%>
         <frame name="down" src="<%=contextPath%>/masterdata/erm/DEREdit.jsp" scrolling="yes" >
      <%} else {%>
         <frame name="down" src="<%=contextPath%>/masterdata/erm/SEREdit.jsp" scrolling="yes" >
  <%} } %>
  <frame name="bottom" src="<%=contextPath%>/masterdata/erm/EREditBottom.jsp" noresize  >
</frameset>

<noframes>
<body>
</body>
</noframes>
</html>



